package com.dong.service;

import com.dong.mapper.RecordMappper;
import com.dong.pojo.Record;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RecordServiceImpl implements RecordService{

    @Autowired
    RecordMappper recordMappper;

    @Override
    public int insertRecord(Record record) {
        return recordMappper.insertRecord(record);
    }

    @Override
    public List<Record> selectRecordByUsername(String username) {
        return recordMappper.selectRecordByUsername(username);
    }

    @Override
    public int deleteReocrd(int sernum) {
        return recordMappper.deleteReocrd(sernum);
    }

    @Override
    public List<Record> selectAllRecord() {
        return recordMappper.selectAllRecord();
    }
}
